import time
import unittest
# from scripts.test01 import TestLoginAPI
from scripts.employee02 import TestEmployee
from tools.HTMLTestRunner import HTMLTestRunner
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestEmployee))


report = "./report/report-{}.html".format(time.strftime("%Y%m%d-%H%M%S"))
# 打开文件流
with open(report, "wb") as f:
# 创建HTMLTestRunner执行器
   runner = HTMLTestRunner(f, title="接口测试报告")
# 执行测试套件
   runner.run(suite)

